package com.sairobo.base.common.orm.plugins;

import com.baomidou.mybatisplus.plugins.OptimisticLockerInterceptor;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Signature;
import org.springframework.stereotype.Component;

/**
 * mybatis-plus 乐观锁插件(springBoot下配置)
 * @author shengming
 * @version V1.0
 * @description:
 * @date 2018/1/8 19:06
 */

@Component
@Intercepts({@Signature(
        type = Executor.class,
        method = "update",
        args = {MappedStatement.class, Object.class}
)})
public class OptimisticLockerInterceptorEx extends OptimisticLockerInterceptor {

}
